package com.nf.health.app.models;

/**
 * Created by hepann on 2016/7/21.
 * The only genius that is worth anything is the genius for hard work
 *
 * @author hepann
 * @Description 扫描硬件设备,用url请求返回的json
 * @email he_pann@163.com
 */
public class QRCodeBean {

    /**
     * success : true
     * code : 0
     * msg : 操作成功！
     * data : {"itemname":"手环","devicemsg":"购买该设备即可享受我们为您提供的私人医生服务。\r\n如果有医生二维码请点击扫码按钮进行扫码操作，可领取医生健康管理服务免费60天。\r\n没有医生二维码可选择不扫码，然后选择服务医生，可领取医生健康管理服务免费30天","devicecode":"7f8794ebe2a44c96bfe5cb4e20654bd5","type":1,"isvalid":"y"}
     */

    private boolean success;
    private String code;
    private String msg;
    /**
     * itemname : 手环
     * devicemsg : 购买该设备即可享受我们为您提供的私人医生服务。
     如果有医生二维码请点击扫码按钮进行扫码操作，可领取医生健康管理服务免费60天。
     没有医生二维码可选择不扫码，然后选择服务医生，可领取医生健康管理服务免费30天
     * devicecode : 7f8794ebe2a44c96bfe5cb4e20654bd5
     * type : 1
     * isvalid : y
     */

    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private String itemname;
        private String devicemsg;
        private String devicecode;
        private int type;
        private String isvalid;

        public String getItemname() {
            return itemname;
        }

        public void setItemname(String itemname) {
            this.itemname = itemname;
        }

        public String getDevicemsg() {
            return devicemsg;
        }

        public void setDevicemsg(String devicemsg) {
            this.devicemsg = devicemsg;
        }

        public String getDevicecode() {
            return devicecode;
        }

        public void setDevicecode(String devicecode) {
            this.devicecode = devicecode;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getIsvalid() {
            return isvalid;
        }

        public void setIsvalid(String isvalid) {
            this.isvalid = isvalid;
        }
    }
}
